package com.luhan.fmmall.service;

import com.luhan.fmmall.entity.Orders;
import com.luhan.fmmall.vo.ResultVO;

import java.sql.SQLException;
import java.util.Map;

public interface OrderService {

    public Map<String,String> addOrder(String cids, Orders order) throws SQLException;

    /**
     * 修改订单状态
     * @param orderId
     * @param status
     * @return
     */
    public int updateOrderStatus(String orderId,String status);

    /**
     * 关闭订单
     * @param orderId
     */
    public void closeOrder(String orderId);

    public ResultVO listOrder(String userId,int pageNum,int limit,String status);
}
